package com.xiaozhengkeji.modok;

import com.xiaozhengkeji.modok.events.CoreEvent;
import com.xiaozhengkeji.modok.utils.MsgUtils;
import org.bukkit.plugin.java.JavaPlugin;

public final class Modok extends JavaPlugin {

    @Override
    public void onEnable() {
        // Plugin startup logic
        MsgUtils.logServer("加载中!");
        //注册监听器
        MsgUtils.logServer("注册监听完成!");
        getServer().getPluginManager().registerEvents(new CoreEvent(), this);
        MsgUtils.logServer("加载完成!");

    }

    @Override
    public void onDisable() {
        // Plugin shutdown logic
        MsgUtils.logServer("卸载完成!");
    }
}
